package com.baox.agridata.synchronous.service;

import com.baox.agridata.synchronous.entity.TXDRTraffickingEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TXDRTraffickingService {


    /**
     * 通过主键查询贩运户是否存在
     *
     * @param mid
     * @return
     */
    TXDRTraffickingEntity selectTXDRTraffickingById(String mid);


    /**
     * 插入贩运户数据
     *
     * @param txdrTraffickingEntity
     * @return
     */
    Integer insertIntoTXDRTrafficking(TXDRTraffickingEntity txdrTraffickingEntity);

    /**
     * 更新贩运户数据
     *
     * @param txdrTraffickingEntity
     * @return
     */
    Integer updateTXDRTraffickingById(TXDRTraffickingEntity txdrTraffickingEntity);

    /**
     * 同步四川的贩运户到成都系统
     *
     * @return
     */
    List<TXDRTraffickingEntity> selectTXDRTraffickingDataToChengDu(String startTime);

}
